<?php


/**
 * 后台管理员登陆
 * Enter description here ...
 * @author Admin
 *
 */
class AdminModel extends CommonModel {
		
	protected $_validate	 =	 array(
		array('name','require','用户名必须！'),
		array('password','require','密码必须！'),
		array('name','','用户名已经存在',0,'unique',3),
	);
	
	protected $_auto	 =	 array(
		array('password','md5',3,'function'),
		array('lastlogin','time',1,'function'),
	);
	
}
?>